﻿// code02050100.cpp : 处理类型
// 类型别名 typedef/using

#include <iostream>
using namespace std;

int main()
{
    typedef double wages;
    typedef wages base, * p;
    using wages1 = double;

    wages hourly, weekly;
    wages1 month;

    //指针类型的别名
    typedef char* pstring;
    char str = 'c';
    const pstring cstr = &str;//const pstring cstr =char* const cstr 指向str的常量指针
    const pstring* ps;//指向char类型对象的常量指针的指针ps
    
}

